package com.szyt.basicframe.pojo.vo;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@ApiModel("用户列表信息")
@Data
@NoArgsConstructor
@AllArgsConstructor
public class UserListItemVO {
    //传递到前端，自动转换为字符串，防止溢出
    @JsonSerialize(using = ToStringSerializer.class)
    @ApiModelProperty("用户id")
    private Long id;

    @ApiModelProperty("用户名")
    private String userName;

    @ApiModelProperty("用户昵称")
    private String nickName;

    @ApiModelProperty("性别，0=男，1=女，2=其他")
    private String sex;

    @ApiModelProperty("是否禁用")
    private Boolean locked;
    /*@ApiModelProperty("电话号码")
    private String tel;

    @ApiModelProperty("邮箱")
    private String email;*/
}
